package com.xiaoxx.utils;

/**
 * @author :HX
 * @date : 2023/8/1
 * 脱敏攻击力
 */
public class DesensitizationUtil {
    /**
     * 电话脱敏
     *
     * @param
     * @return
     */
    public static String phone(String phone) {
        return phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2");
    }
}
